const express = require('express')
const router = express.Router()
const linkDB = require('../../db/link')

// 友链列表
router.post('/getLinks', async (req, res) => {
  let data = await linkDB.find({})
  res.send({
    code: 0,
    msg: '成功获取友链列表',
    data
  })
})

module.exports = router